﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for MoneyUtilities
/// </summary>
public class MoneyUtilities
{
    public static List<KeyValuePair<int, string>> GetEnumList(Type en)
    {
        List<KeyValuePair<int, string>> kq = new List<KeyValuePair<int,string>>();
        foreach(int value in Enum.GetValues(en))
        {
            kq.Add(new KeyValuePair<int,string>(value, Enum.GetName(en, value)));
        }
        return kq;
    }
}
